package com.glory.good_dark.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.good_dark.R;
import com.glory.good_dark.entity.RecipeInfoEntity;

import java.util.List;

/**
 * FileName: RecipeNameListAdapter
 * Author: XJH
 * Date: 2020/4/20 17:13
 * Description:
 * History:
 */
public class RecipeNameListAdapter extends BaseQuickAdapter<RecipeInfoEntity.RecipeName, BaseViewHolder> {

    public RecipeNameListAdapter(@Nullable List<RecipeInfoEntity.RecipeName> data) {
        super(R.layout.item_recipe_name,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, RecipeInfoEntity.RecipeName item) {
        helper.setText(R.id.tvRecipeName,item.getRECIPE_NAME());
    }
}
